<?php


namespace App\Consts;


class GlobalLikeConst
{
    public const TAB_TYPE_ALL     = 'all';
    public const TAB_TYPE_ARTICLE = 'article';
    public const TAB_TYPE_NOTE    = 'note';

    public const TARGET_TYPE = [
        self::TAB_TYPE_ALL     => [GlobalConst::TARGET_TYPE_ARTICLE, GlobalConst::TARGET_TYPE_NOTE],
        self::TAB_TYPE_ARTICLE => GlobalConst::TARGET_TYPE_ARTICLE,
        self::TAB_TYPE_NOTE    => GlobalConst::TARGET_TYPE_NOTE,
    ];

    // 用户是否点赞主体
    public const USER_NOT_LIKE = 0;
    public const USER_IS_LIKED = 1;
}
